package com.tarena.charging.order.feign;

import cn.tedu.charging.common.pojo.JsonResult;
import cn.tedu.charging.common.pojo.param.ChargingProcessParam;
import cn.tedu.charging.common.pojo.vo.ChargingProcessVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "charging-cost")
public interface CostClient {
    //http协议的实现 对标 controller方法
    @PostMapping("/cost/calculate")
    public JsonResult<ChargingProcessVO> costCalc(@RequestBody ChargingProcessParam param);
}
